﻿#pragma once

#include <QWidget>
#include "ui_safetycomponent.h"

class ComponentBase;

class SafetyComponent : public QWidget
{
	Q_OBJECT

public:
	SafetyComponent(QWidget *parent = nullptr);
	~SafetyComponent();

	bool Init();

	void UpdateTable();

private:
	Ui::SafetyComponent ui;
	ComponentBase* m_safeDoor = nullptr;
	ComponentBase* m_safeLocker = nullptr;
	ComponentBase* m_grating = nullptr;
	QStringList m_graIds;
};
